-- GENERATED SPELL FOR [Firewing Bloodwarder] --


function spell0_1410(pUnit, Event) --@Arcane Torrent,Self--
pUnit:FullCastSpellOnTarget(33390,pUnit)
pUnit:RegisterEvent('Sorts_1410', 2263, 1)
end

function spell1_1410(pUnit, Event) --@Mana Tap,n/a--
pUnit:FullCastSpellOnTarget(33483,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1410', 577, 1)
end

function spell2_1410(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(16583,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1410', 663, 1)
end

function Sorts_1410(pUnit, Event)
local choix_sorts_1410 = math.random(0, 2)
if choix_sorts_1410 == 0 then
pUnit:RegisterEvent('spell0_1410', 1, 1)
end
if choix_sorts_1410 == 1 then
pUnit:RegisterEvent('spell1_1410', 1, 1)
end
if choix_sorts_1410 == 2 then
pUnit:RegisterEvent('spell2_1410', 1, 1)
end
end

function mob1410_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1410', math.random(1500, 3000), 1)
end

function mob1410_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1410_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1410_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1410, 1, 'mob1410_Action')
RegisterUnitEvent(1410, 2, 'mob1410_Leave')
RegisterUnitEvent(1410, 3, 'mob1410_Kill')
RegisterUnitEvent(1410, 4, 'mob1410_Die')
